import request from '@/utils/request'
import { getToken } from '@/utils/auth'
export default{
  // 文章列表页------------------------
  getlist(page_num,page_size){
    return request({
      url:`/problem/listPage?page_num=${page_num}&page_size=${page_size}`,
      method: 'GET',
    })
  },
  changeState(data){
    return request({
      url:`/problem`,
      method: 'PUT',
      data,
      headers: {
              'Authorization':getToken()
            }
    })
  }
}
